# Begin Make.conf

SRCS=		test0.c test1.c test2.c test3.c test4.c thand.c \
		hello.c bits.c faced.c klok.c charset.c dklok.c vtdemo.c \
		tetris.c testpollevent.c
OBJS=		test0.o test1.o test2.o test3.o test4.o thand.o \
		hello.o bits.o faced.o klok.o charset.o dklok.o vtdemo.o \
		tetris.o testpollevent.c

XLIBES=		$(X11LIBS)
ALIBES=		../alfa/lib.a -ltermlib
MLIBES=		$(MG1)/lib.a $(WINLIBS)
SLIBES=		$(STUBS)/lib.a /usr/alib/libamunix.a

all:		allx alla # allm alls
allx:		test0.X test1.X test2.X test3.X test4.X hello.X bits.X \
		charset.X klok.X dklok.X faced.X vtdemo.X \
		tetris.X testpollevent.X
alla:		test0.A test1.A test2.A test3.A test4.A hello.A bits.A \
		charset.A klok.A dklok.A faced.A vtdemo.A tetris.A
allm:		test0.M test1.M test2.M test3.M test4.M hello.M bits.M \
		charset.M klok.M dklok.M faced.M vtdemo.M tetris.M
alls:		test0.S test1.S test2.S test3.S test4.S hello.S bits.S \
		charset.S klok.S dklok.S faced.S vtdemo.S tetris.S

test0.X test1.X test2.X test3.X test4.X thand.X \
	hello.X bits.X faced.X klok.X dklok.X vtdemo.X tetris.X: $(XLIBES)

test0.S test1.S test2.S test3.S test4.S thand.S \
	hello.S bits.S faced.S klok.S dklok.S vtdemo.S tetris.S: $(SLIBES)

.SUFFIXES: .X .A .M .S

.o.X:
		$(CC) $(LDFLAGS) $*.o $(XLIBES) -lm -o $*.X

.o.A:
		$(CC) $(LDFLAGS) $*.o $(ALIBES) -lm -o $*.A

.o.M:
		$(CC) $(LDFLAGS) $*.o $(MLIBES) -lm -o $*.M

.o.S:
		$(CC) $(LDFLAGS) $*.o $(SLIBES) -lm -o $*.S

DESTBIN=	/userfs3/amoeba/bin

install::	klok.X
		install -s -m 755 klok.X $(DESTBIN)/klok

tetris:		tetris.X
		mv tetris.X tetris

# End Make.conf
